home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus Special 20 / AMIGAplus Sonderheft 20 (1999)(ICP)(DE)[!].iso / PublicDomain / Alternatives / LinuxAPUS / Install_Linux_APUS < prev    next >
Encoding:
Text File  |  1999-01-01  |  3.7 KB  |  123 lines

  1. ; $VER: Linux/APUS Install revision 1 (27.02.99) by Duncan Gibb
  2. ;
  3. ; This is a very basic installer script intended for Amiga Format
  4. ;
  5. ; It assumes the directory structure
  6. ;
  7. ; Linux_Launcher    - IconX stub for...
  8. ; Linux.rexx        - MUIRexx GUI
  9. ; Linux.aux         - Logic for above
  10. ; BootStrap         - The Linux loader binary
  11. ; Kernels/#?        - Kernel image files - the one named in Linux.aux is assumed to be among them
  12. ; RAMDisks/#?       - RAM disk images    - those named in Linux.aux are assumed to be among them
  13. ; Docs/#?           - Documentation tree (mainly from http://SunSite.auc.dk/pub/os/linux/apus/docs/ )
  14. ;
  15. ; To install RedHat, you must have the RedHat directory structure:
  16. ;
  17. ; /RedHat/base/comps.pmac   - Yeah, yeah, it's not a P-Mac, but it's the same (ish)
  18. ; /RedHat/RPMS/*            - RPMs as listed in the above file (or as many as will fit)
  19. ;
  20. ; ... on some device Linux can see (FFS partition or CD on supported controller)
  21.  
  22.  
  23. (set @app-name "Linux/APUS")
  24. (set AppDir "LinuxAPUS")
  25. (set @error-msg "An unexpected error has occured. Installation aborted.")
  26.  
  27.  
  28. (complete 0)
  29.  
  30. (welcome)
  31.  
  32. (set InstallDir
  33.    (askdir
  34.       (prompt "Please select where you would like " @app-name " installed.\n"
  35.               "A drawer called '" AppDir "' will be created there.")
  36.       (help "Select where you would like " @app-name " installed. "
  37.             "The installer will then create a drawer called '" AppDir "', "
  38.             "and copy the program and necessary files into it.\n")
  39.       (default @default-dest)
  40.    )
  41. )
  42.  
  43. (Set DestDir        (tackon InstallDir AppDir))
  44. (Set KernelsDir     (tackon DestDir "Kernels"))
  45. (Set RAMDisksDir    (tackon DestDir "RAMDisks"))
  46. (Set DocsDir        (tackon DestDir "Docs"))
  47.  
  48. (set @default-dest  DestDir)
  49.  
  50.  
  51.  
  52. ;  Give the main directory a custom icon
  53.  
  54. (copyfiles
  55.     (source "icons/APUS_Drawer.info")
  56.     (dest InstallDir)
  57.     (newname "LinuxAPUS.info")
  58.     (noposition)
  59. )
  60.  
  61.  
  62. ;  Create directories
  63.  
  64. (makedir DestDir)
  65. (makedir KernelsDir     (infos))
  66. (makedir RAMDisksDir    (infos))
  67. (makedir DocsDir        (infos))
  68.  
  69.  
  70.  
  71. (complete 10)
  72.  
  73.  
  74. ;  Copy Launcher and GUI stuff
  75.  
  76. (copyfiles (source "Linux_Launcher")        (dest DestDir) )
  77. (copyfiles (source "Linux_Launcher.info")   (dest DestDir) )
  78. (copyfiles (source "Linux.rexx")            (dest DestDir) )
  79. (copyfiles (source "Linux.aux")             (dest DestDir) )
  80. (copyfiles (source "BootStrap")             (dest DestDir) )
  81.  
  82. (complete 20)
  83.  
  84. ;  copy the kernel images
  85.  
  86. (copyfiles (source "Kernels")       (dest KernelsDir)   (noposition) (all))
  87.  
  88.  
  89. (complete 50)
  90.  
  91. ; copy the RAM disk images
  92.  
  93. (copyfiles (source "RAMDisks")      (dest RAMDisksDir)  (noposition) (all))
  94.  
  95. (complete 80)
  96.  
  97. ; and the documentation
  98.  
  99. (copyfiles (source "Docs")          (dest DocsDir)      (noposition) (all))
  100.  
  101. (complete 99)
  102.  
  103. (rexx "Linux.rexx default_redhat"
  104.     (prompt (cat "\n\nThe Amiga-side installation is now complete.\nDo you want to run the RedHat installer?"))
  105.     (help  (cat "The Linux kernel, its loader and a GUI launcher\n"
  106.                 "have been installed on your Amiga.\n\n"
  107.                 "You now need to install the system software on the Linux side.\n"
  108.                 "You must have some free space (unformatted partitions) on a hard\n"
  109.                 "disk which can be used by Linux, and lots of RedHat RPM files.\n"
  110.                 "If you choose to launch the RedHat installer, your computer will\n"
  111.                 "boot into Linux (AmigaOS is KILLED, so save anything you're working on)\n"
  112.                 "and run the RedHat installer.\n\n"
  113.                 "You can do this at a later time by running the Linux Launcher\n"
  114.                 "and selecting the RedHat option from the Settings menu.\n"))
  115.     (confirm)
  116. )
  117.  
  118.  
  119. ;  All done.
  120.  
  121. (complete 100)
  122.  
  123.